home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr47 / 335_01.zip / AS1805.TXT < prev    next >
Text File  |  1993-04-01  |  8KB  |  529 lines

  1.  
  2.  
  3.  
  4.                                   - 1 -
  5.  
  6.  
  7.  
  8.        A.  Appendix_for_as1805_Frankenstein_Assembler
  9.  
  10.        A.1  Pseudo_Operations
  11.  
  12.        A.1.1  Standard_Pseudo_Operation_Mnemonics
  13.  
  14.             End                                END
  15.             File Inclusion                     INCL INCLUDE
  16.             If                                 IF
  17.             Else                               ELSE
  18.             End If                             ENDI
  19.             Equate                             EQU
  20.             Set                                SET
  21.             Org                                ORG
  22.             Reserve Memory                     RESERVE RMB
  23.             Define Byte Data                   BYTE DB FCB
  24.             Define Word Data                   DW FDB WORD
  25.             Define String Data                 FCC STRING
  26.             Define Character Set Translation   CHARSET
  27.             Define Character Value             CHARDEF CHD
  28.             Use Character Translation          CHARUSE
  29.  
  30.        A.2  Instructions
  31.  
  32.        A.2.1  Instruction_List
  33.  
  34.        Opcode   Syntax               Selection Criteria
  35.  
  36.  
  37.        ADC
  38.  
  39.        ADCI      '#' expr
  40.  
  41.        ADD
  42.  
  43.        ADI       '#' expr
  44.  
  45.        AND
  46.  
  47.        ANI       '#' expr
  48.  
  49.        B1        expr
  50.  
  51.        B2        expr
  52.  
  53.        B3        expr
  54.  
  55.        B4        expr
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                   - 2 -
  71.  
  72.  
  73.  
  74.        Opcode   Syntax               Selection Criteria
  75.  
  76.        BCI       expr                TS1805
  77.  
  78.        BDF       expr
  79.  
  80.        BGE       expr
  81.  
  82.        BL        expr
  83.  
  84.        BM        expr
  85.  
  86.        BN1       expr
  87.  
  88.        BN2       expr
  89.  
  90.        BN3       expr
  91.  
  92.        BN4       expr
  93.  
  94.        BNF       expr
  95.  
  96.        BNQ       expr
  97.  
  98.        BNZ       expr
  99.  
  100.        BPZ       expr
  101.  
  102.        BQ        expr
  103.  
  104.        BR        expr
  105.  
  106.        BXI       expr                TS1805
  107.  
  108.        BZ        expr
  109.  
  110.        CID                           TS1805
  111.  
  112.        CIE                           TS1805
  113.  
  114.        DACI      '#' expr            TS1805
  115.  
  116.        DADC                          TS1805
  117.  
  118.        DADD                          TS1805
  119.  
  120.        DADI      '#' expr            TS1805
  121.  
  122.        DBNZ      expr ',' expr       TS1805
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.                                   - 3 -
  137.  
  138.  
  139.  
  140.        Opcode   Syntax               Selection Criteria
  141.  
  142.  
  143.        DEC       expr
  144.  
  145.        DIS
  146.  
  147.        DSAV                          TS1805
  148.  
  149.        DSBI      '#' expr            TS1805
  150.  
  151.        DSM                           TS1805
  152.  
  153.        DSMB                          TS1805
  154.  
  155.        DSMI      '#' expr            TS1805
  156.  
  157.        DTC                           TS1805
  158.  
  159.        ETQ                           TS1805
  160.  
  161.        GEC                           TS1805
  162.  
  163.        GHI       expr
  164.  
  165.        GLO       expr
  166.  
  167.        IDL
  168.  
  169.        INC       expr
  170.  
  171.        INP       expr
  172.  
  173.        IRX
  174.  
  175.        LBDF      expr
  176.  
  177.        LBNF      expr
  178.  
  179.        LBNQ      expr
  180.  
  181.        LBNZ      expr
  182.  
  183.        LBQ       expr
  184.  
  185.        LBR       expr
  186.  
  187.        LBZ       expr
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.                                   - 4 -
  203.  
  204.  
  205.  
  206.        Opcode   Syntax               Selection Criteria
  207.  
  208.        LDA       expr
  209.  
  210.        LDC                           TS1805
  211.  
  212.        LDI       '#' expr
  213.  
  214.        LDN       expr
  215.  
  216.        LDX
  217.  
  218.        LDXA
  219.  
  220.        LSDF
  221.  
  222.        LSIE
  223.  
  224.        LSKP
  225.  
  226.        LSNF
  227.  
  228.        LSNQ
  229.  
  230.        LSNZ
  231.  
  232.        LSQ
  233.  
  234.        LSZ
  235.  
  236.        MARK
  237.  
  238.        NBR      expr
  239.  
  240.        NLBR     expr
  241.  
  242.        NOP
  243.  
  244.        OR
  245.  
  246.        ORI       '#' expr
  247.  
  248.        OUT       expr
  249.  
  250.        PHI       expr
  251.  
  252.        PLO       expr
  253.  
  254.        REQ
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.                                   - 5 -
  269.  
  270.  
  271.  
  272.        Opcode   Syntax               Selection Criteria
  273.  
  274.  
  275.        RET
  276.  
  277.        RLDI      expr ',' '#' expr   TS1805
  278.  
  279.        RLXA      expr                TS1805
  280.  
  281.        RNX       expr                TS1805
  282.  
  283.        RSHL
  284.  
  285.        RSHR
  286.  
  287.        RSXD      expr                TS1805
  288.  
  289.        SAV
  290.  
  291.        SCAL      expr ',' expr       TS1805
  292.  
  293.        SCM1                          TS1805
  294.  
  295.        SCM2                          TS1805
  296.  
  297.        SD
  298.  
  299.        SDB
  300.  
  301.        SDBI      '#' expr
  302.  
  303.        SDI       '#' expr
  304.  
  305.        SEP       expr
  306.  
  307.        SEQ
  308.  
  309.        SEX       expr
  310.  
  311.        SHL
  312.  
  313.        SHLC
  314.  
  315.        SHR
  316.  
  317.        SHRC
  318.  
  319.        SKP
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.                                   - 6 -
  335.  
  336.  
  337.  
  338.        Opcode   Syntax               Selection Criteria
  339.  
  340.        SM
  341.  
  342.        SMB
  343.  
  344.        SMBI      '#' expr
  345.  
  346.        SMI       '#' expr
  347.  
  348.        SPM1                          TS1805
  349.  
  350.        SPM2                          TS1805
  351.  
  352.        SRET      expr                TS1805
  353.  
  354.        STM                           TS1805
  355.  
  356.        STPC                          TS1805
  357.  
  358.        STR       expr
  359.  
  360.        STXD
  361.  
  362.        XID                           TS1805
  363.  
  364.        XIE                           TS1805
  365.  
  366.        XOR
  367.  
  368.        XRI       '#' expr
  369.  
  370.        A.2.2  Selection_Criteria_Keywords
  371.  
  372.             TS1805              Instruction is only valid for the
  373.                                 1804A/1805A/1806A instruction sets.
  374.  
  375.        A.2.3  Apostrophes  The apostrophes in the syntax field are
  376.        a notation used for the parser generator and are not put in
  377.        the assembler source statement.
  378.  
  379.        A.3  Notes
  380.  
  381.        A.3.1  Instruction_Set_Selection  The default is the 1805
  382.        instruction set. To restrict the instruction set, use the -p
  383.        1802 optional arguement on the command line, or rename or
  384.        link the program file with a name containing the string 1802
  385.        (or just "02").
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.                                   - 7 -
  401.  
  402.  
  403.  
  404.        A.3.2  Register_and_Port_expressions  The register and port
  405.        numbers are specified as expressions.  For registers, the
  406.        value must be between 0 and 15 (1 and 15 for the LDN
  407.        instruction).  For input/output ports, the value must be
  408.        between 1 and 7.  The value must be computable when
  409.        processed in the first pass.  The SET and EQU statements can
  410.        be used to setup symbols for registers and ports.  It is
  411.        recomended that a standard include file be setup to assign a
  412.        set of symbols (like R0 to R15) for registers.
  413.  
  414.        A.3.3  Branch_Target_Expression_Validity  The "expression
  415.        fails validity test" error message can occur if the
  416.        destination of a short branch is not on the same page as the
  417.        the last byte of the instruction.  The "expression exceeds
  418.        available field width" can also occur for this case.
  419.        Usually the validity message occurs when the destination is
  420.        at a lower page, and the width message occurs when the
  421.        destination is at a higher page.
  422.  
  423.        A.3.4  Immediate_Data  The immediate data expressions for
  424.        the RLDI (as well as the arithmetic and logic operations)
  425.        are required to be on same line as the opcode.
  426.  
  427.        A.3.5  Reserved_Symbols
  428.  
  429.        A.3.5.1  Standard_Reserved_Symbols  AND DEFINED EQ GE GT
  430.        HIGH LE LOW LT MOD NE NOT OR SHL SHR XOR and defined eq ge
  431.        gt high le low lt mod ne not or shl shr xor
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.                                  CONTENTS
  471.  
  472.  
  473.        A.  Appendix for as1805 Frankenstein Assembler...........  1
  474.            A.1  Pseudo Operations...............................  1
  475.            A.2  Instructions....................................  1
  476.            A.3  Notes...........................................  6
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.                                   - i -
  525.  
  526.  
  527.  
  528.  
  529.